﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package scripting {

    public class ScriptingManager {

        protected var m_conditions:ScriptingConditions;

        public function ScriptingManager(){
            this.m_conditions = new ScriptingConditions();
        }
        public function getConditionFunction(_arg1:String, _arg2:IScriptingContext=null):Function{
            if (((_arg2) && ((_arg2 as Object).hasOwnProperty(_arg1)))){
                return ((_arg2[_arg1] as Function));
            };
            if (this.m_conditions.hasOwnProperty(_arg1)){
                return (this.m_conditions[_arg1]);
            };
            return (null);
        }

    }
}//package scripting 
